import datetime

from Utils.router import router


@router.get("/time_date", tags=['时间'], summary='前日时间获取')
async def time_date():
    now = datetime.datetime.now()
    yes_day = str((now - datetime.timedelta(days=1)).strftime("%Y-%m-%d"))
    return {'date': yes_day}
